<template>
    <div class="login" :style="winSize">
        <el-row>
            <el-col :span='24'>
                <div class="content">
                    <el-form label-position="left" label-width="40px" class="demo-ruleForm card-box loginform"
                             v-loading="login_actions.disabled"
                             :element-loading-text="'正在登录...'"
                             :style="formOffset"
                             :model='data'
                             :rules="rule_data"
                             ref='data'>
                        <h3 class="title">
                            <span class="active">登录</span>
                        </h3>
                        <el-form-item
                                label='账号'
                                prop='account'>
                            <el-input type="text" auto-complete="off" placeholder="请输入账号"
                                      v-model='data.account'></el-input>
                        </el-form-item>

                        <el-form-item
                                label='密码'
                                prop='password'>
                            <el-input type="password" auto-complete="off" placeholder="请输入密码"
                                      v-model='data.password'
                                      @keyup.native.enter="onLogin('data',true)"></el-input>
                        </el-form-item>

                        <el-form-item class="assist-group">
                            <el-button type='text' class='btn btn-forget' @click='onReminder'>忘记密码</el-button>
                        </el-form-item>

                        <el-button type="primary"
                                    size='large'
                                    class='btn-login'
                                   @click='onLogin("data")'>登录
                        </el-button>
                    </el-form>
                </div>
            </el-col>
        </el-row>
    </div>
</template>

<script>
	import LoginJs from './Login.js';
	module.exports = LoginJs;
</script>

<style scoped lang='less'>
    @import url(Login.less);
</style>
